<?php
//include("../chk.php");
include("../common/conn.php");
include("../common/publicFun.php");
$id1=GetForm("id1");
$id2=CheckNum(GetForm("id2"),0,-1);
if(!preg_match('/\d+/i',$id1) || !preg_match('/\d+/i',$id2)) exit('ID错误');
$arr=array('parentId'=>$id2,'time'=>date("Y-m-d H:i:s"));
if(_update('folder',$arr,'id='.$id1)){
  exit('移动成功');
}else{
  exit('移动失败');
}
?>